package com.fjnldx.ks.controller;

import com.fjnldx.ks.pojo.request.SchedulingShiftInModel;
import com.fjnldx.ks.pojo.response.Result;
import com.fjnldx.ks.service.PowerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/queryPower")
@Api(value = "电耗相关", tags = "电耗相关")
public class PowerController {
    @Resource
    PowerService powerService;

    @PostMapping("/queryPowerOfVarietyOnDuty")
    @ApiOperation(value = "查询当班某工序各品种电耗", notes = "查询当班某工序各品种电耗")
    public Result queryPowerOfVarietyOnDuty(@RequestBody SchedulingShiftInModel params) {
        return powerService.queryPowerOfVarietyOnDuty(params);
    }

}
